package com.lqq.demo6;

public class Press {
    int number;
    String name;
    String address;

    public Press() {
    }

    public Press(int number, String name, String address) {
        this.number = number;
        this.name = name;
        this.address = address;
    }

    public void print(){
        System.out.println( "出版社名称：" + name + "\n出版社地址：" + address);
    }
}
